import network from '@/common/network.js'

//用户投票详情
export const voteInfo = data=> {
  return network({
    url: '/gp-boot/gp/api/gpVote/listGpVoteoptionByMainId',
    data,
    auth: true,
  })
}

//用户投票-是否可投票
export const canVote = param=> {
  return network({
    url: '/gp-boot/gp/api/gpVote/canVote',
    param,
    method: 'post',
    auth: true,
  })
}

//用户投票-投票
export const addVote = data=>{
  return network({
    url: '/gp-boot/gp/api/gpVote/vote',
    data,
    method: 'post',
    auth: true,
  })
}

//投票管理-分页列表查询
export const getvoteList = data=> {
  return network({
    url: '/gp-boot/gp/api/gpVote/list',
    data,
    auth: true,
  })
}
//修改密码
export const gpUserInfo =  () => {
  return network({
    url: '/gp-boot/gp/api/gpUser/info',
    method: 'post',
    auth: true,
  })
}
